<?php
namespace app\manage\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class GoodsCategory extends Validate
{
    //定义验证规则
    protected $rule = [
        'sort'=>'require|number',
        'name'  => 'require',
        'desc'  => 'require',
    ];

    //定义验证提示
    protected $message = [
        'sort.require' => '请输入排序',
        'name.require' => '请输入名称',
        'desc.require' => '请输入商品描述',
    ];

}
